﻿#include "CmdLineChartLineChartTracerSelectChange.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartLineChartTracerSelectChange::CmdLineChartLineChartTracerSelectChange()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartLineChartTracerSelectChange::~CmdLineChartLineChartTracerSelectChange()
    {
    }

    bool CmdLineChartLineChartTracerSelectChange::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartLineChartTracerSelectChange(m_id, m_selected);
        return true;
    }

    void CmdLineChartLineChartTracerSelectChange::undo()
    {
        // TODO: undo
    }

    void CmdLineChartLineChartTracerSelectChange::redo()
    {
        execute();
    }

}
